package com.example.user.api.client;

import com.example.common.domain.Result;
import com.example.user.domain.vo.AddressVO;
import com.example.user.domain.vo.UserInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name= "user-service")
public interface AddressCLient {
    @GetMapping("/user/address/{id}")
    Result<AddressVO> findById(@PathVariable("id") Integer id);

    @GetMapping("/user/volunteer/{userId}")
    Result<UserInfoVO> getVolunteer(@PathVariable("userId") Long userId);

}
